package me.msbj.base;

import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;
import java.util.Optional;

/**
 * @author Administrator
 */
public interface MyBaseRepository<T, ID extends Serializable> extends PagingAndSortingRepository<T, ID> {

    @Override
    Optional<T> findById(ID id);

    @Override
    <S extends T> S save(S entity);
}